<?php

/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2017/8/14
 * Time: 16:10
 */
trait util_array
{

    //easy array get
    public static function util_array_get(array $array = [], $key = null, $default = null)
    {
        return isset($array[$key]) ? $array[$key] : $default;
    }


}